<?php
/**
 * Created by PhpStorm.
 * User: YXJ
 * Date: 2019/2/16
 * Time: 14:20
 */
namespace app\index\validate;

use think\Validate;

class CreateCamera extends Validate
{
    protected $rule=[
        'location'=>'require',
        'urls'=>'require|url',
        'user_id'=>'require',
    ];

    protected $message=[
        'location.require'=> '缺少定位地址location',
        "urls.require"=>"缺少直播地址urls",
        "urls.url"    => "直播地址格式不对",
        "user_id.require"=>"缺少用户id",
    ];
}